﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using BUS;
using DAO;
namespace QLTTTH
{
    public partial class frmTTkhoahoc : DevExpress.XtraEditors.XtraForm
    {
        public frmTTkhoahoc()
        {
            InitializeComponent();
        }

        private void frmTTkhoahoc2_Load(object sender, EventArgs e)
        {
            BUS_LopHoc KHOAHOC = new BUS_LopHoc();
            gv_khoahoc.DataSource = KHOAHOC.LayThongTinKhoaHoc();
           
        }

        private void gv_khoahoc_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            int dong = e.RowIndex;
            txt_khoahoc.Text = gv_khoahoc.Rows[dong].Cells["KHOA"].Value.ToString();
            txt_ngaykhaigiang.Text = gv_khoahoc.Rows[dong].Cells["NGAYKHAIGIANG"].Value.ToString();
            txt_ngayketthuc.Text = gv_khoahoc.Rows[dong].Cells["NGAYKETTHUC"].Value.ToString();
        }

       
      
    }
}